package com.iheqing.test.app.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.iheqing.test.app.entity.Menu;
import com.iheqing.test.app.mapper.MenuMapper;
import com.iheqing.test.app.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 菜单管理 服务实现类
 * </p>
 *
 * @author iheqing@qq.com
 * @since 2020-03-15
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    @Autowired
    MenuMapper menuMapper;

    @Override
    public IPage<Menu> findMenu(Page<Menu> page, Integer parentId, Integer type) {
        return menuMapper.findMenu(page,parentId,type);
    }
}
